home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / MODULES / LINEEDIT.SPK / Zap131 < prev   
Text File  |  1996-08-27  |  2KB  |  55 lines

  1. # Copyright (C) Olly Betts 1996
  2. # This patch may be distributed freely, but use at your own risk.
  3. #
  4. # You'll need Acorn's !Patch to use this file.  On a Risc PC, it should
  5. # be in $.Utilities.Patches.!Patch on the harddisc.  On a RISC OS 3
  6. # machine, look on one of the floppy discs that come with the machine.
  7. # !Patch claims not to run on RISC OS 2, but you can always patch !Zap
  8. # on a newer machine and copy it across.
  9. #
  10. # Purpose: I've enhanced the interface to the LineEditor_CreateBuffer
  11. # SWI, which allows other programs to create a buffer for storing and
  12. # recalling lines.  The enhancement is to optionally take a taskhandle,
  13. # and LineEditor will automatically free the buffer if that task quits.
  14. # The enhanced calling convention is backward and forward compatible.
  15. #
  16. # Zap 1.30 uses this interface, but was written with the old interface
  17. # so doesn't pass a taskhandle in, so Zap's buffer won't get freed if
  18. # it exits unexpectedly (though I've only actually had this happen when
  19. # I've killed LineEditor when Zap was using it).
  20. #
  21. # Put simply:
  22. #
  23. # This patch doesn't require LineEditor 2.70, and isn't required by
  24. # LineEditor 2.70.  There's no point in applying it if you don't use
  25. # LineEditor but there's no harm either, and it doesn't even increase
  26. # the size of the Zap module.
  27. #
  28. # I have permission from Dom Symes (Zap's author) to distribute this patch.
  29. #
  30. Application:!Zap &2000
  31. Description:Zap Text Editor
  32. #
  33. Patch:Updates !Zap to use improved interface to LineEditor_CreateBuffer
  34. #
  35. File:!Zap.Code.Zap &FFA
  36. # check version string
  37. Location:&30
  38. VerifyString:Zap<9><9>1.30<32>(20<32>Jun<32>1995)
  39. # update version string
  40. Location:&35
  41. ChangeString:1.30<32>(20<32>Jun<32>1995) 1.31<32>(11<32>Aug<32>1996)
  42. # patches to code
  43. Location:&1734C
  44. ChangeWord:&E92D4006 &E92D400E
  45. Location:&17358
  46. ChangeWord:&E1A02001 &E1A03001
  47. ChangeWord:&E3A00000 &E59C10D8
  48. ChangeWord:&E3A01000 &E1A0200C
  49. Location:&1736C
  50. ChangeWord:&E1A01002 &E1A01003
  51. Location:&1737C
  52. ChangeWord:&E8BD8006 &E8BD800E
  53. Location:&17384
  54. ChangeWord:&E8BD8006 &E8BD800E
  55.